package com.itheima.作业.饲养动物;

/*public record Employee() {

    public void breed(Animal animal) {
        animal.eat();//吃饭
        animal.drink();
        if (animal instanceof Dog) {
            ((Dog) animal).swim();


        } else if (animal instanceof Frog) {
            ((Frog) animal).swim();
        }
    }

//    public Breeder(int age) {
//        super(age);
//    }

    @Override
    public void eat() {

    }

    @Override
    public void drink() {
        super.drink();
    }
    public void swimGame( ISwimming  swim     ) {
        swim.swim();
        System.out.println("游泳");
    }
}*/
